<?php

namespace App\Http\Controllers\V1\Api;

use App\Models\V1\MessageClass;

use Illuminate\Http\Request;

class MessageClassController extends BaseController
{
    /**
     * 信息分类列表
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function index(Request $request){
        $pageSize=$request->input('pageSize',100);
        $query=MessageClass::query();
        $query->where('state', '=', 1);
        $data=$query->paginate($pageSize);
        return ajax_output(200,"成功",$data);
    }




}
